package com.auxgroup.hr.front.commons.security;

import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;

import org.apache.shiro.authz.Permission;


/**
 * @author ye.meng@ssitsh.com
 * @since 1.0.0
 * create date 2016年10月16日
 * 匿名访问的AuthenticatedPrincipal
 */
public class AnonymousAuthenticatedPrincipal implements AuxSecurityPrincipal {
	private static final long serialVersionUID = 1L;

	/* (non-Javadoc)
	 * @see java.security.Principal#getName()
	 */
	@Override
	public String getName() {
		return null;
	}

	/* (non-Javadoc)
	 */
	@Override
	public Collection<String> getStringPermissions() {
		return null;
	}

	/* (non-Javadoc)
	 */
	@Override
	public Collection<Permission> getObjectPermissions() {
		return new HashSet<Permission>();
	}

	/* (non-Javadoc)
	 */
	@Override
	public Collection<String> getRoles() {
		return new HashSet<String>();
	}

	/* (non-Javadoc)
	 */
	@Override
	public Map<String, String> getAttributes() {
		return new HashMap<String,String>();
	}

	/* (non-Javadoc)
	 */
	@Override
	public String getDisplayName() {
		return null;
	}

	/* (non-Javadoc)
	 */
	@Override
	public boolean isAdminPrincipal() {
		return false;
	}

	/* (non-Javadoc)
	 */
	@Override
	public Collection<String> getGroups() {
		return new HashSet<String>();
	}

}
